package com.lagou.service;

import com.github.pagehelper.PageInfo;
import com.lagou.common.ServerResponse;
import com.lagou.model.User;


public interface IUserService {
    ServerResponse<User> login(String username, String password);

    ServerResponse<String> deleteByPrimary(int id);

    ServerResponse<String> add(User user);

    ServerResponse<PageInfo> getUsers(int pageNum, int pageSize);

    ServerResponse<User> getInformation(int userId);

    ServerResponse<String> update(User user);
}
